#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr1[] = {1,2,3,4,5};
	int arr2[] = {5,4,3,2,1};
	int sz = sizeof(arr1) / sizeof(arr1[0]) ;
	for (int i = 0; i < sz; i++)
	{
		int tmp = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = tmp;
	}
	for (int j = 0; j < sz; j++)
	{


		printf("%d ", arr1[j]);
	}
	printf("\n");
	for (int j = 0; j < sz; j++)
	{
		printf("%d ", arr2[j]);

	}
	return 0;
}